import { Provide } from '@midwayjs/decorator';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { BaseService } from '../../../common/base.service';
import { RoomManageEntity } from '../entity/roomManage';
import { ListQuery } from '../dto/roomManage';

export enum RoomStatusEnum {
  Enable = '1',
  Disable = '0'
}

@Provide()
export class RoomManageService extends BaseService<RoomManageEntity> {
  @InjectEntityModel(RoomManageEntity)
  roomManageModel: Repository<RoomManageEntity>;

  getModel(): Repository<RoomManageEntity> {
    return this.roomManageModel;
  }

  async getRoomList(query: ListQuery) {
    const rut = await this.list(query);

    

    return rut
  }
}